import { createStore } from "vuex";

const files = require.context("./modules", false, /\.js$/);
const modules = {};
files.keys().forEach((key) => {
  modules[key.replace(/(\.\/|\.js)/g, "")] = files(key).default;
});
console.log("modules", modules);
export default createStore({
  modules,
  plugins: [modules.check.mutations.tokenPlugin],
});
